package day01_IO_JDBC.demo_JDBC_emp_pro.Net;

import java.io.IOException;
import java.io.InputStream;
import java.net.Socket;

public class EmpClient {
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("127.0.0.1", 8888);
        InputStream is = socket.getInputStream();
        byte[] buf = new byte[1024];
        int len = is.read(buf);
        System.out.println("服务端返回: " + new String(buf, 0, len));
        socket.close();
    }
} 